package com.zelin.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;

/**
 * ------------------------------
 * 功能：班级实体
 * 作者：WF
 * 微信：hbxfwf13590332912
 * 创建时间：2021/9/14-15:06
 * ------------------------------
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "classes")
public class Classes {
    @Id                                //设置主键
    @KeySql(useGeneratedKeys = true)   //设置主键自增
    private Integer cid;
    private String cname;
}
